package com.mybatis.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mybatis.entity.User;
import com.mybatis.mapper.UserMapper;
import com.mybatis.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author ALIEN-ZHU
 * @since 2020-05-07
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public IPage<User> page(IPage<User> page, Map<String, Object> data) {
        return userMapper.selectPage(page, data);
    }

}
